#include "CDrawText.h"

CDrawText::CDrawText()
{

}

CDrawText::~CDrawText()
{

}

void CDrawText::setText(QString sText)
{
    m_sText = sText;
}

void CDrawText::setPoint(QPoint point)
{
    m_Point = point;
}

void CDrawText::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
    QFont font;
    font.setBold(true);
    font.setPixelSize(32);
    painter->setFont(font);
    QPen pen;
    pen.setColor(QColor("#2979FF"));
    painter->setPen(pen);
    painter->drawText(m_Point,m_sText);
}
